#ifndef _NMEA_DATA_H_
#define _NMEA_DATA_H_

typedef struct
{
	// Time part
	unsigned short year;
	unsigned char month;
	unsigned char day;
	unsigned char hour;
	unsigned char min;
	unsigned char sec;
	// Location part
	unsigned char valid_state;
	float latitude;
	unsigned char latitude_ns;
	float longitude;
	unsigned char longitude_ew;

	unsigned int speed;

}nmea_GNRMC_t;

extern signed char nmea_msg_GNRMC(nmea_GNRMC_t *gnrmc_t, unsigned char *data, int len);

#endif
